$(function(){
    $(".back-to-pre").click(function(){
        console.log("44");
        history.back();
    });
});


function getUrlRelativePath()
{
    var url = document.location.toString();
    var arrUrl = url.split("//");
    var start = arrUrl[1].indexOf("/");
    var relUrl = arrUrl[1].substring(start);//stop省略，截取从start开始到结尾的所有字符
    if(relUrl.indexOf("?") != -1){
        relUrl = relUrl.split("?")[0];
    }
    return relUrl;
}

function getUrlPara()
{
    var url = document.location.toString();
    var arrUrl = url.split("?");
    var para = arrUrl[1];
    return para;
}

FastClick.attach(document.body);

function ajaxPage(elm,link){
    $.ajax({
        url:link,
        type:"GET",
        success:function(da){
            elm.html(da);
        }
    });
}